function init(){    
    var config = {
        "mode": "fixed_servers",
        "pacScript": {},
        "rules": {
            "bypassList": [],
            "singleProxy": {
                "scheme": "socks5",
                "host": "127.0.0.1",
                "port": 10080
            }
        }
    }
    chrome.proxy.settings.set({value: config, scope: 'regular'}, function() {})
}

init()

